package com.ikun.service.impl;

import com.ikun.mapper.TbRechargeMapper;
import com.ikun.service.LetterService;
import com.ikun.service.RechargeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class RechargeServiceImpl implements RechargeService {
    @Autowired
    TbRechargeMapper tbRechargeMapper;
    @Override
    public boolean createRecharge(BigDecimal recharge_money, String recharge_order, Long uid) {
        int count = tbRechargeMapper.createRecharge(recharge_money,recharge_order,uid);
        if(count>0){
            return true;
        }
        return false;
    }

}
